package com.voiceblog.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private String account;
	private Integer userType;
	private String blogName;
	private String password;
	private String email;
	private Integer blogGrade;
	private Date birthday;
	private String sex;
	private String address;
	private String headImage;
	private Date lastLoginTime;
	private Integer visitNumber;
	private Set albums = new HashSet(0);
	private Set leaveMessages = new HashSet(0);
	private Set messages = new HashSet(0);
	private Set blogs = new HashSet(0);
	private Set friends = new HashSet(0);

	// Constructors

	/** default constructor */
	public Users() {
	}

	/** minimal constructor */
	public Users(Integer userType, String blogName, String password,
			Integer blogGrade, Date birthday, String sex, Integer visitNumber) {
		this.userType = userType;
		this.blogName = blogName;
		this.password = password;
		this.blogGrade = blogGrade;
		this.birthday = birthday;
		this.sex = sex;
		this.visitNumber = visitNumber;
	}

	/** full constructor */
	public Users(Integer userType, String blogName, String password,
			String email, Integer blogGrade, Date birthday, String sex,
			String address, String headImage, Date lastLoginTime,
			Integer visitNumber, Set albums, Set leaveMessages, Set messages,
			Set blogs, Set friends) {
		this.userType = userType;
		this.blogName = blogName;
		this.password = password;
		this.email = email;
		this.blogGrade = blogGrade;
		this.birthday = birthday;
		this.sex = sex;
		this.address = address;
		this.headImage = headImage;
		this.lastLoginTime = lastLoginTime;
		this.visitNumber = visitNumber;
		this.albums = albums;
		this.leaveMessages = leaveMessages;
		this.messages = messages;
		this.blogs = blogs;
		this.friends = friends;
	}

	// Property accessors

	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public Integer getUserType() {
		return this.userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getBlogName() {
		return this.blogName;
	}

	public void setBlogName(String blogName) {
		this.blogName = blogName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getBlogGrade() {
		return this.blogGrade;
	}

	public void setBlogGrade(Integer blogGrade) {
		this.blogGrade = blogGrade;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getHeadImage() {
		return this.headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}

	public Date getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Integer getVisitNumber() {
		return this.visitNumber;
	}

	public void setVisitNumber(Integer visitNumber) {
		this.visitNumber = visitNumber;
	}

	public Set getAlbums() {
		return this.albums;
	}

	public void setAlbums(Set albums) {
		this.albums = albums;
	}

	public Set getLeaveMessages() {
		return this.leaveMessages;
	}

	public void setLeaveMessages(Set leaveMessages) {
		this.leaveMessages = leaveMessages;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

	public Set getBlogs() {
		return this.blogs;
	}

	public void setBlogs(Set blogs) {
		this.blogs = blogs;
	}

	public Set getFriends() {
		return this.friends;
	}

	public void setFriends(Set friends) {
		this.friends = friends;
	}

}